<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>

        //封装的功能 
       function   myfunction(){
           console.log(1)
           console.log(2)
           console.log(3)
           console.log(4)
           console.log(5)
       }




   </script>
</head>
<body>

    <form action="http://www.baidu.com" >

        用户: <input type="text" name="username"  value="admin" />
        密码: <input type="password" name="password"  />

        <button type="submit" >提交-submit</button>
        <button  type="reset">提交-reset</button>
        <button  type="button" onclick="alert(1)" >提交-button</button>
    </form>



    <button onclick="myfunction()" >提交2</button>


    

    
</body>
</html>